home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow_WinXP / VMR / Cube / project.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  688 b   |  30 lines

  1. //------------------------------------------------------------------------------
  2. // File: project.h
  3. //
  4. // Desc: DirectShow sample code - main header file for Renderless player
  5. //
  6. // Copyright (c) 1994 - 2001, Microsoft Corporation.  All rights reserved.
  7. //------------------------------------------------------------------------------
  8.  
  9. #include "app.h"
  10. #include "vcdplyer.h"
  11. #include "resource.h"
  12.  
  13.  
  14. #ifndef __RELEASE_DEFINED
  15. #define __RELEASE_DEFINED
  16. template<typename T>
  17. __inline void RELEASE( T* &p )
  18. {
  19.     if( p ) {
  20.         p->Release();
  21.         p = NULL;
  22.     }
  23. }
  24. #endif
  25.  
  26. #ifndef CHECK_HR
  27.     #define CHECK_HR(expr) { if (FAILED(expr)) __leave; };
  28. #endif
  29.  
  30.